using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using DTO;

namespace WellmeadowsHospital
{
    public partial class ReportPatientWaiting : DevExpress.XtraReports.UI.XtraReport
    {
        public ReportPatientWaiting()
        {
            InitializeComponent();
        }
        public void Load(WardInfoDTO nhap)
        {

            lblChargeNurse.Text = nhap.Name;
            lblLocation.Text = nhap.Location;
            lblStaffID.Text = nhap.StaffID;
            lblTelExtn.Text = nhap.TelExtn;
            lblWardName.Text = nhap.WardName;
            lblWardID.Text = nhap.WardID;

            colPatientID.DataBindings.Add("Text", DataSource, "PatientID");
            colName.DataBindings.Add("Text", DataSource, "Name");
            colDateRegis.DataBindings.Add("Text", DataSource, "DateRegistered");
            colSex.DataBindings.Add("Text", DataSource, "Sex");
            colTel.DataBindings.Add("Text", DataSource, "Tel");
            colAddress.DataBindings.Add("Text", DataSource, "Address");
            //lbldate.DataBindings.Add("Value", DataSource, "DateBegin");
            XRBinding b = new XRBinding("Text", DataSource, "DateBegin", "{0:MM/dd/yyyy}");
            lbldate.DataBindings.Add(b);
        }
    }
}
